Optimal. Leaf size=27 \[ -\frac {i a^9}{4 d (a-i a \tan (c+d x))^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3568, 32}
\begin {gather*} -\frac {i a^9}{4 d (a-i a \tan (c+d x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 32
Rule 3568
Rubi steps
\begin {align*} \int \cos ^8(c+d x) (a+i a \tan (c+d x))^5 \, dx &=-\frac {\left (i a^9\right ) \text {Subst}\left (\int \frac {1}{(a-x)^5} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac {i a^9}{4 d (a-i a \tan (c+d x))^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(73\) vs. \(2(27)=54\).
time = 0.62, size = 73, normalized size = 2.70 \begin {gather*} \frac {a^5 (10 \cos (c+d x)+5 \cos (3 (c+d x))-i (2 \sin (c+d x)+3 \sin (3 (c+d x)))) (-i \cos (5 (c+d x))+\sin (5 (c+d x)))}{64 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 300 vs. \(2 (23 ) = 46\).
time = 0.24, size = 301, normalized size = 11.15
method | result | size |
risch | \(-\frac {i a^{5} {\mathrm e}^{8 i \left (d x +c \right )}}{64 d}-\frac {i a^{5} {\mathrm e}^{6 i \left (d x +c \right )}}{16 d}-\frac {3 i a^{5} {\mathrm e}^{4 i \left (d x +c \right )}}{32 d}-\frac {i a^{5} {\mathrm e}^{2 i \left (d x +c \right )}}{16 d}\) | \(74\) |
derivativedivides | \(\frac {i a^{5} \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{4}\left (d x +c \right )\right )}{8}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{4}\left (d x +c \right )\right )}{12}-\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{24}\right )+5 a^{5} \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{5}\left (d x +c \right )\right )}{8}-\frac {\sin \left (d x +c \right ) \left (\cos ^{5}\left (d x +c \right )\right )}{16}+\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{64}+\frac {3 d x}{128}+\frac {3 c}{128}\right )-10 i a^{5} \left (-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{8}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{24}\right )-10 a^{5} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{7}\left (d x +c \right )\right )}{8}+\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{48}+\frac {5 d x}{128}+\frac {5 c}{128}\right )-\frac {5 i a^{5} \left (\cos ^{8}\left (d x +c \right )\right )}{8}+a^{5} \left (\frac {\left (\cos ^{7}\left (d x +c \right )+\frac {7 \left (\cos ^{5}\left (d x +c \right )\right )}{6}+\frac {35 \left (\cos ^{3}\left (d x +c \right )\right )}{24}+\frac {35 \cos \left (d x +c \right )}{16}\right ) \sin \left (d x +c \right )}{8}+\frac {35 d x}{128}+\frac {35 c}{128}\right )}{d}\) | \(301\) |
default | \(\frac {i a^{5} \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{4}\left (d x +c \right )\right )}{8}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{4}\left (d x +c \right )\right )}{12}-\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{24}\right )+5 a^{5} \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{5}\left (d x +c \right )\right )}{8}-\frac {\sin \left (d x +c \right ) \left (\cos ^{5}\left (d x +c \right )\right )}{16}+\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{64}+\frac {3 d x}{128}+\frac {3 c}{128}\right )-10 i a^{5} \left (-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{8}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{24}\right )-10 a^{5} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{7}\left (d x +c \right )\right )}{8}+\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{48}+\frac {5 d x}{128}+\frac {5 c}{128}\right )-\frac {5 i a^{5} \left (\cos ^{8}\left (d x +c \right )\right )}{8}+a^{5} \left (\frac {\left (\cos ^{7}\left (d x +c \right )+\frac {7 \left (\cos ^{5}\left (d x +c \right )\right )}{6}+\frac {35 \left (\cos ^{3}\left (d x +c \right )\right )}{24}+\frac {35 \cos \left (d x +c \right )}{16}\right ) \sin \left (d x +c \right )}{8}+\frac {35 d x}{128}+\frac {35 c}{128}\right )}{d}\) | \(301\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 103 vs. \(2 (21) = 42\).
time = 0.51, size = 103, normalized size = 3.81 \begin {gather*} -\frac {i \, a^{5} \tan \left (d x + c\right )^{4} + 4 \, a^{5} \tan \left (d x + c\right )^{3} - 6 i \, a^{5} \tan \left (d x + c\right )^{2} - 4 \, a^{5} \tan \left (d x + c\right ) + i \, a^{5}}{4 \, {\left (\tan \left (d x + c\right )^{8} + 4 \, \tan \left (d x + c\right )^{6} + 6 \, \tan \left (d x + c\right )^{4} + 4 \, \tan \left (d x + c\right )^{2} + 1\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 62 vs. \(2 (21) = 42\).
time = 0.40, size = 62, normalized size = 2.30 \begin {gather*} \frac {-i \, a^{5} e^{\left (8 i \, d x + 8 i \, c\right )} - 4 i \, a^{5} e^{\left (6 i \, d x + 6 i \, c\right )} - 6 i \, a^{5} e^{\left (4 i \, d x + 4 i \, c\right )} - 4 i \, a^{5} e^{\left (2 i \, d x + 2 i \, c\right )}}{64 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 162 vs. \(2 (22) = 44\).
time = 0.37, size = 162, normalized size = 6.00 \begin {gather*} \begin {cases} \frac {- 8192 i a^{5} d^{3} e^{8 i c} e^{8 i d x} - 32768 i a^{5} d^{3} e^{6 i c} e^{6 i d x} - 49152 i a^{5} d^{3} e^{4 i c} e^{4 i d x} - 32768 i a^{5} d^{3} e^{2 i c} e^{2 i d x}}{524288 d^{4}} & \text {for}\: d^{4} \neq 0 \\x \left (\frac {a^{5} e^{8 i c}}{8} + \frac {3 a^{5} e^{6 i c}}{8} + \frac {3 a^{5} e^{4 i c}}{8} + \frac {a^{5} e^{2 i c}}{8}\right ) & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 267 vs. \(2 (21) = 42\).
time = 0.82, size = 267, normalized size = 9.89 \begin {gather*} -\frac {i \, a^{5} e^{\left (24 i \, d x + 16 i \, c\right )} + 12 i \, a^{5} e^{\left (22 i \, d x + 14 i \, c\right )} + 66 i \, a^{5} e^{\left (20 i \, d x + 12 i \, c\right )} + 220 i \, a^{5} e^{\left (18 i \, d x + 10 i \, c\right )} + 494 i \, a^{5} e^{\left (16 i \, d x + 8 i \, c\right )} + 784 i \, a^{5} e^{\left (14 i \, d x + 6 i \, c\right )} + 896 i \, a^{5} e^{\left (12 i \, d x + 4 i \, c\right )} + 736 i \, a^{5} e^{\left (10 i \, d x + 2 i \, c\right )} + 164 i \, a^{5} e^{\left (6 i \, d x - 2 i \, c\right )} + 38 i \, a^{5} e^{\left (4 i \, d x - 4 i \, c\right )} + 4 i \, a^{5} e^{\left (2 i \, d x - 6 i \, c\right )} + 425 i \, a^{5} e^{\left (8 i \, d x\right )}}{64 \, {\left (d e^{\left (16 i \, d x + 8 i \, c\right )} + 8 \, d e^{\left (14 i \, d x + 6 i \, c\right )} + 28 \, d e^{\left (12 i \, d x + 4 i \, c\right )} + 56 \, d e^{\left (10 i \, d x + 2 i \, c\right )} + 56 \, d e^{\left (6 i \, d x - 2 i \, c\right )} + 28 \, d e^{\left (4 i \, d x - 4 i \, c\right )} + 8 \, d e^{\left (2 i \, d x - 6 i \, c\right )} + 70 \, d e^{\left (8 i \, d x\right )} + d e^{\left (-8 i \, c\right )}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.30, size = 63, normalized size = 2.33 \begin {gather*} -\frac {\frac {a^5\,{\cos \left (c+d\,x\right )}^4\,1{}\mathrm {i}}{4}+a^5\,{\cos \left (c+d\,x\right )}^6\,\left (\mathrm {tan}\left (c+d\,x\right )-2{}\mathrm {i}\right )-2\,a^5\,{\cos \left (c+d\,x\right )}^8\,\left (\mathrm {tan}\left (c+d\,x\right )-\mathrm {i}\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________